QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    src\imgarea.cpp \
    src\main.cpp \
    src\mainwindow.cpp \
    src\toolgroup.cpp

HEADERS += \
    include\imgarea.h \
    include\mainwindow.h \
    include\toolgroup.h


INCLUDEPATH += include\
    D:\mylib\opencv\4.5.1\include


LIBS += -LD:\mylib\opencv\4.5.1\x64\mingw\lib\ \
    -lopencv_core451.dll \
    -lopencv_imgcodecs451.dll \
    -lopencv_ximgproc451.dll \
    -lopencv_imgproc451.dll

#设置里记得改：工具-选项-构建和运行-Default_Build_Propeties里面的默认路径。想不通为什么build要和项目文件夹一个级别(貌似VS也这样)
CONFIG (release, release|debug){
    OBJECTS_DIR = tmp/objs #指定所有中间文件.o（.obj）放置的目录
    MOC_DIR     = tmp/moc  #指定来自moc的所有中间文件放置的目录（含Q_OBJECT宏的头文件转换成标准.h文件的存放目录）
    UI_DIR      = tmp/ui   #指定来自uic的所有中间文件放置的目录（.ui文件转化成ui_*.h文件的存放目录）
    RCC_DIR     = tmp/rcc  #指定Qt资源编译器输出文件的目录（.qrc文件转换成qrc_*.h文件的存放目录）
    DESTDIR     = ./       #.exe文件放置的目录（编译器的build-debug里面再放一对debug、release真奇怪，这样keke'yi可以把exe放到build-debug下）
}

CONFIG (debug,release|debug){
    OBJECTS_DIR = tmp/objs
    MOC_DIR     = tmp/moc
    UI_DIR      = tmp/ui
    RCC_DIR     = tmp/rcc
    DESTDIR     = ./
}
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
